#ifndef __UNIT_STACK_H__
#define __UNIT_STACK_H__


#include "Common/BaseType.h"
#include <set>

namespace Common
{
	template<typename ST>
	class Stack
	{
	public:
		Stack();
		~Stack();

		BOOL InitStack( UINT count );
	private:
		ST*            _pStArray;
		UINT           _elementNum;
		std::set<int>  _freeIndexSet;
	};
}


#endif